<script>
	import {onBeforeMount} from 'vue'
	import myApi from '@/utils/api'
	const getUserInfo = async(type)=>{
		const {data:{articleCounts,avatar,nickname,other},code} = await myApi.getmMsterInfo()
		if(code==0){
			uni.setStorageSync('mster',JSON.stringify({avatar,nickname,other}))
			uni.setStorageSync('article',JSON.stringify(articleCounts))
		}
	}
	export default {
		onLaunch: function() {
			getUserInfo()
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page {
		font-size: 28rpx;
		color: #666;
	}
</style>
